﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DANGQUYNHTRANG.Programming.Part03.BT02
{
    class Circle
    {
        double dRadius = 1.0;

        //Ham khoi tao
        public Circle() { }

        public Circle(double NewRadius){
            dRadius = NewRadius;
        }

        //Ham tinh dien tich
        public double Area()
        {
            return dRadius * dRadius * Math.PI;
        }

        public double getRadius {
            get { return dRadius; }
            set { dRadius = value; } 
        }
    }
}
